package chapter21.homework01;

public class Memento {
    private String state;//备忘录类

    public Memento(UnRedoOriginator unRedoOriginator) {
        this.state = unRedoOriginator.getState();
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
